/**
 * COPYRIGHT© KMTC 2007
 * This software is the proprietary information of Korea Marine Transport Co.LTD
 * 
 * Revision History
 * Author					Date				Description
 * ------					----				-----------
 * �?주희@wees.co.kr	2007.12.14		method logging pointcut
 */
package kr.or.javacafe.common.advice;

import java.lang.reflect.Method;
import org.springframework.aop.support.StaticMethodMatcherPointcut;
import org.springframework.aop.ClassFilter;
 
/**
 * @author mousing
 *	메소?��?�� ?��?���? ?��?�� 로그�? 붙이?�� Advice?�� Pointcut
 */
public class LoggingPointcut extends StaticMethodMatcherPointcut {

	/* (non-Javadoc)
	 * @see org.springframework.aop.MethodMatcher#matches(java.lang.reflect.Method, java.lang.Class)
	 */
	public boolean matches(Method method, Class cls) {
		
		if( "memberJoin".equals(method.getName()) ){
			return true;
		}
		
		return false;
	}
	
	public ClassFilter getClassFilter(){
		
		return new ClassFilter(){
			public boolean matches(Class cls){
				return true;
			}
		};
		
	}

}
